package com.shuoyue.ycgk.ui.papergroups.freedomnew;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.FreedomPaper;
import com.shuoyue.ycgk.entity.Paper;

import java.util.List;

public class FreedomAdapter extends AppBaseQuickAdapter<FreedomPaper> {
    public FreedomAdapter(@Nullable List<FreedomPaper> data) {
        super(R.layout.item_freedom, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FreedomPaper item) {
        helper.addOnClickListener(R.id.lay_all);
        helper.setText(R.id.title, item.getTypeName());
        helper.setText(R.id.sub, "每次"
                + item.getQuestionNum() + "题");
    }
}
